﻿namespace Whse.Api.Models.Aggregates.ProductAggregate
{
    public record ProductStatus : ValueObject
    {
        public ProductStatusCodes Code { get; }

        public string ChangesReason { get; }

        private ProductStatus()
        {
        }

        internal ProductStatus(ProductStatusCodes statusCode, string reason)
        {
            Code = statusCode;
            ChangesReason = reason is null ? string.Empty : reason.Trim();
        }
    }

    public enum ProductStatusCodes
    {
        UnKnow = 1000
    ,
        SaleOff = 1008
    ,
        SaleOn = 1016
    }
}
